import { createApp } from 'vue'
// import './style.css'
import App from './App.vue';
// import { createRouter } from 'vue-router'
import router from "./router/index";
import pinia from "./store/"
import Particles from "@tsparticles/vue3";
import { loadSlim } from "@tsparticles/slim";
import "../src/assets/css/common.css";
import "./permission";
import piniaPluginPersist from "pinia-plugin-persist";

// 持久化
pinia.use(piniaPluginPersist);
// 国际化
import i18n from"./view/lang";
const app = createApp(App)
  app.use(Particles, {
    init: async (engine) => {
      await loadSlim(engine);
    },
  }) //使用粒子背景
  app.use(pinia) //使用pinia
  app.use(router)
app.use(i18n)
 //使用路由
  app.mount("#app");


